<?php
include('config.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Home page</title>

<link href="css/style.css" rel="stylesheet" type="text/css">
<link href="css/skin.css" rel="stylesheet" type="text/css">

<script type="text/javascript" src="js/jquery-1.js"></script>
<script type="text/javascript" src="js/jquery.js"></script>
<?php if($_SESSION['page']=='index') { ?>
<script type="text/javascript" src="js/navigation_basic.js"></script>
<?php } else { ?>
<script type="text/javascript" src="js/navigation_advanced.js"></script>
<?php } ?>

</head>
<body>

<div class="home ">
    <div id="page"></div>
<!-- #page -->
<div id="wrapper">
    <div id="search">
        <form action="" method="post">
        	<input name="search" value="Search" onFocus="if (this.value == 'Search') {
           this.value = '';}" onBlur="if (this.value == '') { this.value = 'Search'; }" type="text">
        	<input src="images/go.jpg" value="go" type="image">   
    	
        </form>
  </div>
  <div class="contact" id="contactlinks">
    <p> Tel no: +44 (0) 1304 203545 </p>
   <p id="top_email"><a href="mailto:bob@powerscribe.com ">email</a></p>
  </div>
		
    
      <div id="header">
        <div id="logo">
          <h1><a href="<?php makeUrl('index.html');?>">Gatic</a></h1>
        </div>
        <div class="clear"></div>				
		<div class="logo" style="overflow:hidden;"><img id="logoImage" src="images/<?php echo $top_header_loader[$config['site']['pageinfo']['filename']]; ?>" /><div id="head_title" align="left" >Specialised Engineering. Special Advice.</div></div>		
        <div id="nav">
          <?php breadCrumb(); ?>
          <div class="clear"></div>
        </div>
      </div>
	  <br>  
      <div class="sidebar">
          <ul id="basic-modal">
            <?php
			if(isset($_SESSION['page']))
			{
				sideLink('Home','index.html',true);
				sideLink('Company','company.html',true);
                foreach($config['pages'][$_SESSION['page']] as $text=>$link){                     
                     if(strpos($text,'_')===0) continue;
			         sideLink($text,$link); 
                }  
				?>
				<li class="blackcolor"><a href="javascript: void 0" load_modal="contacts" >Contact</a></li>
				<?php
				sideLink('My Gatic - log in','#',true);
			}			
            ?>            
          </ul>
</div>
      <!-- #header -->
      <div id="content" class="<?=$config['site']['pageinfo']['filename'];?>Page <?php echo $sub_page; ?>">
		<!-- .main -->
        
        <div class="main">
        
<?php
include('contact_form.php');
include('login_form.php');
?>